package de.fuberlin.inf.alp4.ue2;

public class Client {

	public static void main(String[] args) {
		Proxy proxy = new Proxy();
		try {
			MyFuture m1 = proxy.newMethodRequest();
			MyFuture m2 = proxy.newMethodRequest();
			for(int i = 0; i < 10; i++)
				proxy.scheduler.loop();

			System.out.println("Result of M1: " + m1.get().getResult());
			System.out.println("Result of M2: " + m2.get().getResult());
			
		} catch (Exception e) {
			e.printStackTrace();
		}
		

	}

}
